home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 2003 June / macformat-130.iso / mac / Reviewed⁄Demos / Spearhead Demo / demota / pak1.pk3 / scripts / hud.shader < prev    next >
Encoding:
Text File  |  2002-10-26  |  21.4 KB  |  1,333 lines

  1. qtextures/hud/crosshair
  2. {
  3.     surfaceparm nolightmap
  4.     nomipmaps
  5.     nopicmip
  6.     cull none
  7.     {
  8.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  9.         map textures/hud/crosshair.tga
  10.     }
  11. }
  12.  
  13. //-------------------------------------------
  14. // These are the HUD icons for weapon classes
  15. //-------------------------------------------
  16.  
  17. // Overlay for when the player doesn't have the weapon
  18. textures/hud/weap_empty_old
  19. {
  20.     surfaceparm nolightmap
  21.     nomipmaps
  22.     nopicmip
  23.     cull none
  24.     {
  25.         blendFunc blend
  26.         rgbGen identity
  27.         alphaGen oneMinusVertex
  28.         map textures/hud/weap_empty.tga
  29.     }
  30. }
  31.  
  32. textures/hud/weap_empty
  33. {
  34.     surfaceparm nolightmap
  35.     nomipmaps
  36.     nopicmip
  37.     cull none
  38.     {
  39.         blendFunc blend
  40. //        rgbGen const .3 .3 .3
  41. //        alphaGen const .6
  42. //        map $whiteimage
  43.     }
  44. }
  45.  
  46. textures/hud/weap_grenade_x
  47. {
  48.     surfaceparm nolightmap
  49.     nomipmaps
  50.     nopicmip
  51.     cull none
  52.     {
  53.         blendFunc blend
  54. //        rgbGen const .3 .3 .3
  55. //        alphaGen const .6
  56. //        map $whiteimage
  57.         map textures/hud/weap_grenade_x.tga
  58.     }
  59. }
  60.  
  61. textures/hud/weap_heavy_x
  62. {
  63.     surfaceparm nolightmap
  64.     nomipmaps
  65.     nopicmip
  66.     cull none
  67.     {
  68.         blendFunc blend
  69. //        rgbGen const .3 .3 .3
  70. //        alphaGen const .6
  71. //        map $whiteimage
  72.         map textures/hud/weap_heavy_x.tga
  73.     }
  74. }
  75.  
  76. textures/hud/weap_pistol_x
  77. {
  78.     surfaceparm nolightmap
  79.     nomipmaps
  80.     nopicmip
  81.     cull none
  82.     {
  83.         blendFunc blend
  84. //        rgbGen const .3 .3 .3
  85. //        alphaGen const .6
  86. //        map $whiteimage
  87.         map textures/hud/weap_pistol_x.tga
  88.     }
  89. }
  90.  
  91. textures/hud/weap_rifle_x
  92. {
  93.     surfaceparm nolightmap
  94.     nomipmaps
  95.     nopicmip
  96.     cull none
  97.     {
  98.         blendFunc blend
  99. //        rgbGen const .3 .3 .3
  100. //        alphaGen const .6
  101. //        map $whiteimage
  102.         map textures/hud/weap_rifle_x.tga
  103.     }
  104. }
  105.  
  106. textures/hud/weap_mg_x
  107. {
  108.     surfaceparm nolightmap
  109.     nomipmaps
  110.     nopicmip
  111.     cull none
  112.     {
  113.         blendFunc blend
  114. //        rgbGen const .3 .3 .3
  115. //        alphaGen const .6
  116. //        map $whiteimage
  117.         map textures/hud/weap_mg_x.tga
  118.     }
  119. }
  120.  
  121. textures/hud/weap_smg_x
  122. {
  123.     surfaceparm nolightmap
  124.     nomipmaps
  125.     nopicmip
  126.     cull none
  127.     {
  128.         blendFunc blend
  129. //        rgbGen const .3 .3 .3
  130. //        alphaGen const .6
  131. //        map $whiteimage
  132.         map textures/hud/weap_smg_x.tga
  133.     }
  134. }
  135. // Overlay for when the weapon is equipped
  136. textures/hud/weap_equipped
  137. {
  138.     surfaceparm nolightmap
  139.     nomipmaps
  140.     nopicmip
  141.     cull none
  142.     {
  143.         blendFunc GL_SRC_ALPHA GL_ONE
  144.         rgbGen wave sin .75 .25 0 .5
  145.         alphaGen oneMinusVertex
  146.         map textures/hud/weap_selected.tga
  147.     }
  148. }
  149.  
  150. textures/hud/weap_grenade_s
  151. {
  152.     surfaceparm nolightmap
  153.     nomipmaps
  154.     nopicmip
  155.     cull none
  156.     {
  157.         blendFunc blend
  158.         rgbGen wave sin .75 .25 0 .5
  159.         alphaGen oneMinusVertex
  160.         map textures/hud/weap_grenade_s.tga
  161.     }
  162. }
  163.  
  164. textures/hud/weap_heavy_s
  165. {
  166.     surfaceparm nolightmap
  167.     nomipmaps
  168.     nopicmip
  169.     cull none
  170.     {
  171.         blendFunc blend
  172.         rgbGen wave sin .75 .25 0 .5
  173.         alphaGen oneMinusVertex
  174.         map textures/hud/weap_heavy_s.tga
  175.     }
  176. }
  177.  
  178. textures/hud/weap_pistol_s
  179. {
  180.     surfaceparm nolightmap
  181.     nomipmaps
  182.     nopicmip
  183.     cull none
  184.     {
  185.         blendFunc blend
  186.         rgbGen wave sin .75 .25 0 .5
  187.         alphaGen oneMinusVertex
  188.         map textures/hud/weap_pistol_s.tga
  189.     }
  190. }
  191.  
  192. textures/hud/weap_rifle_s
  193. {
  194.     surfaceparm nolightmap
  195.     nomipmaps
  196.     nopicmip
  197.     cull none
  198.     {
  199.         blendFunc blend
  200.         rgbGen wave sin .75 .25 0 .5
  201.         alphaGen oneMinusVertex
  202.         map textures/hud/weap_rifle_s.tga
  203.     }
  204. }
  205.  
  206. textures/hud/weap_mg_s
  207. {
  208.     surfaceparm nolightmap
  209.     nomipmaps
  210.     nopicmip
  211.     cull none
  212.     {
  213.         blendFunc blend
  214.         rgbGen wave sin .75 .25 0 .5
  215.         alphaGen oneMinusVertex
  216.         map textures/hud/weap_mg_s.tga
  217.     }
  218. }
  219.  
  220. textures/hud/weap_smg_s
  221. {
  222.     surfaceparm nolightmap
  223.     nomipmaps
  224.     nopicmip
  225.     cull none
  226.     {
  227.         blendFunc blend
  228.         rgbGen wave sin .75 .25 0 .5
  229.         alphaGen oneMinusVertex
  230.         map textures/hud/weap_smg_s.tga
  231.     }
  232. }
  233.  
  234. textures/hud/weap_pistol
  235. {
  236.     surfaceparm nolightmap
  237.     nomipmaps
  238.     nopicmip
  239.     cull none
  240.     {
  241.         blendFunc blend
  242.         rgbGen identity
  243.         alphaGen oneMinusVertex
  244.         map textures/hud/weap_pistol.tga
  245.     }
  246. }
  247.  
  248. textures/hud/weap_rifle
  249. {
  250.     surfaceparm nolightmap
  251.     nomipmaps
  252.     nopicmip
  253.     cull none
  254.     {
  255.         blendFunc blend
  256.         rgbGen identity
  257.         alphaGen oneMinusVertex
  258.         map textures/hud/weap_rifle.tga
  259.     }
  260. }
  261.  
  262. textures/hud/weap_smg
  263. {
  264.     surfaceparm nolightmap
  265.     nomipmaps
  266.     nopicmip
  267.     cull none
  268.     {
  269.         blendFunc blend
  270.         rgbGen identity
  271.         alphaGen oneMinusVertex
  272.         map textures/hud/weap_smg.tga
  273.     }
  274. }
  275.  
  276. textures/hud/weap_mg
  277. {
  278.     surfaceparm nolightmap
  279.     nomipmaps
  280.     nopicmip
  281.     cull none
  282.     {
  283.         blendFunc blend
  284.         alphaGen oneMinusVertex
  285.         map textures/hud/weap_mg.tga
  286.     }
  287. }
  288.  
  289. textures/hud/weap_grenade
  290. {
  291.     surfaceparm nolightmap
  292.     nomipmaps
  293.     nopicmip
  294.     cull none
  295.     {
  296.         blendFunc blend
  297.         rgbGen identity
  298.         alphaGen oneMinusVertex
  299.         map textures/hud/weap_grenade.tga
  300.     }
  301. }
  302.  
  303. textures/hud/weap_heavy
  304. {
  305.     surfaceparm nolightmap
  306.     nomipmaps
  307.     nopicmip
  308.     cull none
  309.     {
  310.         blendFunc blend
  311.         rgbGen identity
  312.         alphaGen oneMinusVertex
  313.         map textures/hud/weap_heavy.tga
  314.     }
  315. }
  316.  
  317. //-------------------------------------
  318. // These are the HUD icons for items
  319. //-------------------------------------
  320.  
  321. textures/hud/item_empty
  322. {
  323.     surfaceparm nolightmap
  324.     nomipmaps
  325.     nopicmip
  326.     cull none
  327.     {
  328.         blendFunc blend
  329.         rgbGen identity
  330.         alphaGen oneMinusVertex
  331.         map textures/hud/item_empty.tga
  332.     }
  333. }
  334.  
  335. textures/hud/item_highlight
  336. {
  337.     surfaceparm nolightmap
  338.     nomipmaps
  339.     nopicmip
  340.     cull none
  341.     {
  342.         blendFunc GL_SRC_ALPHA GL_ONE // this is an additive blend that can be controled with the alpha level
  343.         rgbGen wave sin .75 .25 0 .5
  344.         alphaGen oneMinusVertex
  345.         map textures/hud/item_selected.tga
  346.     }
  347. }
  348.  
  349. textures/hud/item_camera
  350. {
  351.     surfaceparm nolightmap
  352.     nomipmaps
  353.     nopicmip
  354.     cull none
  355.     {
  356.         blendFunc blend
  357.         rgbGen identity
  358.         alphaGen oneMinusVertex
  359.         clampmap textures/hud/item_camera.tga
  360.     }
  361. }
  362.  
  363. textures/hud/item_binoculars
  364. {
  365.     surfaceparm nolightmap
  366.     nomipmaps
  367.     nopicmip
  368.     cull none
  369.     {
  370.         blendFunc blend
  371.         rgbGen identity
  372.         alphaGen oneMinusVertex
  373.         clampmap textures/hud/binoc3.tga
  374.     }
  375. }
  376.  
  377. textures/hud/item_bangalore
  378. {
  379.     surfaceparm nolightmap
  380.     nomipmaps
  381.     nopicmip
  382.     cull none
  383.     {
  384.         blendFunc blend
  385.         rgbGen identity
  386.         alphaGen oneMinusVertex
  387.         clampmap textures/hud/bangalores.tga
  388.     }
  389. }
  390.  
  391. textures/hud/item_battery
  392. {
  393.     surfaceparm nolightmap
  394.     nomipmaps
  395.     nopicmip
  396.     cull none
  397.     {
  398.         blendFunc blend
  399.         rgbGen identity
  400.         alphaGen oneMinusVertex
  401.         clampmap textures/hud/battery.tga
  402.     }
  403. }
  404.  
  405. textures/hud/item_clipboard
  406. {
  407.     surfaceparm nolightmap
  408.     nomipmaps
  409.     nopicmip
  410.     cull none
  411.     {
  412.         blendFunc blend
  413.         rgbGen identity
  414.         alphaGen oneMinusVertex
  415.         clampmap textures/hud/clipboard.tga
  416.     }
  417. }
  418.  
  419. textures/hud/item_explosive
  420. {
  421.     surfaceparm nolightmap
  422.     nomipmaps
  423.     nopicmip
  424.     cull none
  425.     {
  426.         blendFunc blend
  427.         rgbGen identity
  428.         alphaGen oneMinusVertex
  429.         clampmap textures/hud/explosives.tga
  430.     }
  431. }
  432.  
  433. textures/hud/item_radio_explosive
  434. {
  435.     surfaceparm nolightmap
  436.     nomipmaps
  437.     nopicmip
  438.     cull none
  439.     {
  440.         blendFunc blend
  441.         rgbGen identity
  442.         alphaGen oneMinusVertex
  443.         clampmap textures/hud/item_radio_explosive.tga
  444.     }
  445. }
  446.  
  447. textures/hud/item_gasmask
  448. {
  449.     surfaceparm nolightmap
  450.     nomipmaps
  451.     nopicmip
  452.     cull none
  453.     {
  454.         blendFunc blend
  455.         rgbGen identity
  456.         alphaGen oneMinusVertex
  457.         clampmap textures/hud/gasmask.tga
  458.     }
  459. }
  460.  
  461. textures/hud/item_papers1
  462. {
  463.     surfaceparm nolightmap
  464.     nomipmaps
  465.     nopicmip
  466.     cull none
  467.     {
  468.         blendFunc blend
  469.         rgbGen identity
  470.         alphaGen oneMinusVertex
  471.         clampmap textures/hud/item_papers2.tga
  472.     }
  473. }
  474.  
  475. textures/hud/item_papers2
  476. {
  477.     surfaceparm nolightmap
  478.     nomipmaps
  479.     nopicmip
  480.     cull none
  481.     {
  482.         blendFunc blend
  483.         rgbGen identity
  484.         alphaGen oneMinusVertex
  485.         clampmap textures/hud/item_papers1.tga
  486.     }
  487. }
  488.  
  489. textures/hud/item_wirecutters
  490. {
  491.     surfaceparm nolightmap
  492.     nomipmaps
  493.     nopicmip
  494.     cull none
  495.     {
  496.         blendFunc blend
  497.         rgbGen identity
  498.         alphaGen oneMinusVertex
  499.         clampmap textures/hud/wirecutters.tga
  500.     }
  501. }
  502.  
  503. textures/hud/item_radio
  504. {
  505.     surfaceparm nolightmap
  506.     nomipmaps
  507.     nopicmip
  508.     cull none
  509.     {
  510.         blendFunc blend
  511.         rgbGen identity
  512.         alphaGen oneMinusVertex
  513.         clampmap textures/hud/radio1.tga
  514.     }
  515. }
  516.  
  517. textures/hud/item_radar_blueprints
  518. {
  519.     surfaceparm nolightmap
  520.     nomipmaps
  521.     nopicmip
  522.     cull none
  523.     {
  524.         blendFunc blend
  525.         rgbGen identity
  526.         alphaGen oneMinusVertex
  527.         clampmap textures/hud/item_radar_blueprints.tga
  528.     }
  529. }
  530.  
  531. textures/hud/item_radar_notes
  532. {
  533.     surfaceparm nolightmap
  534.     nomipmaps
  535.     nopicmip
  536.     cull none
  537.     {
  538.         blendFunc blend
  539.         rgbGen identity
  540.         alphaGen oneMinusVertex
  541.         clampmap textures/hud/item_radar_notes.tga
  542.     }
  543. }
  544.  
  545. textures/hud/item_uboat_blueprints
  546. {
  547.     surfaceparm nolightmap
  548.     nomipmaps
  549.     nopicmip
  550.     cull none
  551.     {
  552.         blendFunc blend
  553.         rgbGen identity
  554.         alphaGen oneMinusVertex
  555.         clampmap textures/hud/item_uboat_blueprints.tga
  556.     }
  557. }
  558.  
  559. textures/hud/item_uboat_notes
  560. {
  561.     surfaceparm nolightmap
  562.     nomipmaps
  563.     nopicmip
  564.     cull none
  565.     {
  566.         blendFunc blend
  567.         rgbGen identity
  568.         alphaGen oneMinusVertex
  569.         clampmap textures/hud/item_uboat_notes.tga
  570.     }
  571. }
  572.  
  573. textures/hud/item_uniform
  574. {
  575.     surfaceparm nolightmap
  576.     nomipmaps
  577.     nopicmip
  578.     cull none
  579.     {
  580.         blendFunc blend
  581.         rgbGen identity
  582.         alphaGen oneMinusVertex
  583.         clampmap textures/hud/item_uniform.tga
  584.     }
  585. }
  586.  
  587. textures/hud/item_stg44_blueprints
  588. {
  589.     surfaceparm nolightmap
  590.     nomipmaps
  591.     nopicmip
  592.     cull none
  593.     {
  594.         blendFunc blend
  595.         rgbGen identity
  596.         alphaGen oneMinusVertex
  597.         clampmap textures/hud/item_stg44_blueprints.tga
  598.     }
  599. }
  600.  
  601. textures/hud/item_tigerii_manual
  602. {
  603.     surfaceparm nolightmap
  604.     nomipmaps
  605.     nopicmip
  606.     cull none
  607.     {
  608.         blendFunc blend
  609.         rgbGen identity
  610.         alphaGen oneMinusVertex
  611.         clampmap textures/hud/item_tigerii_manual.tga
  612.     }
  613. }
  614.  
  615. textures/hud/item_battleplans
  616. {
  617.     surfaceparm nolightmap
  618.     nomipmaps
  619.     nopicmip
  620.     cull none
  621.     {
  622.         blendFunc blend
  623.         rgbGen identity
  624.         alphaGen oneMinusVertex
  625.         clampmap textures/hud/item_tigerii_manual.tga
  626.     }
  627.  
  628. //-------------------------------------------
  629. // These are the shaders for the hud compass, health meter, and stealth meter
  630. //-------------------------------------------
  631.  
  632. // this is the main backdrop for the section of the hud
  633. // that contains the health meter, stealth meter, and the compass
  634. textures/hud/healthstealthback
  635. {
  636.     surfaceparm nolightmap
  637.     nomipmaps
  638.     nopicmip
  639.     {
  640.         clampmap textures/hud/healthstealthback.tga
  641.         blendFunc blend
  642.         alphaGen oneMinusVertex
  643.     }
  644. }
  645.  
  646. //this is the little directional arrow between the spheres
  647. textures/hud/directional_arrow
  648. {
  649.     surfaceparm nolightmap
  650.     nomipmaps
  651.     nopicmip
  652.     {
  653.         clampmap textures/hud/directional_arrow.tga
  654.         blendFunc blend
  655.         alphaGen oneMinusVertex
  656.     }
  657. }
  658.  
  659. // the shader used for the player's health meter
  660. textures/hud/healthmeter
  661. {
  662.     surfaceparm nolightmap
  663.     nomipmaps
  664.     nopicmip
  665.     {
  666.         clampmap textures/hud/healthmeter.tga
  667.         blendFunc blend
  668.         alphaGen oneMinusVertex
  669. //        tcmod rotate 5
  670. //        nextbundle
  671. //        clampmap textures/hud/healthmeter.tga
  672. //        tcmod rotate -5
  673.     }
  674. }
  675.  
  676. // the shader used when the player's health changes
  677. textures/hud/healthmeterflash
  678. {
  679.     surfaceparm nolightmap
  680.     nomipmaps
  681.     nopicmip
  682.     {
  683.         clampmap textures/hud/healthmeterflash.tga
  684.         blendFunc blend
  685.         alphaGen oneMinusVertex
  686.     }
  687. }
  688.  
  689. // The shader used for the stealth meter
  690. textures/hud/stealthmeter
  691. {
  692.     surfaceparm nolightmap
  693.     nomipmaps
  694.     nopicmip
  695.     {
  696.         clampmap textures/hud/stealthmeter.tga
  697.         blendFunc blend
  698.         alphaGen oneMinusVertex
  699.     }
  700. }
  701.  
  702. // the main body of the compass
  703. textures/hud/compassback
  704. {
  705.     surfaceparm nolightmap
  706.     nomipmaps
  707.     nopicmip
  708.     {
  709.         clampmap textures/hud/compassback.tga
  710.         blendFunc blend
  711.         alphaGen oneMinusVertex
  712.     }
  713. }
  714.  
  715. textures/hud/compasspain
  716. {
  717.     surfaceparm nolightmap
  718.     nomipmaps
  719.     nopicmip
  720.     {
  721.         clampmap textures/hud/compasspain.tga
  722.         blendFunc blend
  723.         alphaGen oneMinusVertex
  724.     }
  725. }
  726.  
  727. textures/hud/compasspainblank
  728. {
  729.     surfaceparm nolightmap
  730.     {
  731.         map $whiteimage
  732.         blendFunc blend
  733.         alphaGen const 0
  734.     }
  735. }
  736.  
  737. // The compass needle
  738. textures/hud/compassneedle
  739. {
  740.     surfaceparm nolightmap
  741.     nomipmaps
  742.     nopicmip
  743.     {
  744.         clampmap textures/hud/compassneedle.tga
  745.         blendFunc blend
  746.         alphaGen oneMinusVertex
  747.     }
  748. }
  749.  
  750. // the little thinggys that go around the compass for the objectives
  751. textures/hud/compassobjball
  752. {
  753.     surfaceparm nolightmap
  754.     nomipmaps
  755.     nopicmip
  756.     {
  757.         clampmap textures/hud/compassobjball.tga
  758.         blendFunc blend
  759.         alphaGen oneMinusVertex
  760.     }
  761. }
  762.  
  763. //-------------------------------------------
  764. // These are the shaders for the hud ammo meter, and weapon clip meter
  765. //-------------------------------------------
  766.  
  767. // the main backdrop for the section of the hud
  768. // that contains the ammo meter, clip meter, and ammo model display
  769. textures/hud/ammoclipback
  770. {
  771.     surfaceparm nolightmap
  772.     nomipmaps
  773.     nopicmip
  774.     {
  775.         clampmap textures/hud/ammoclipback.tga
  776.         blendFunc blend
  777.         alphaGen oneMinusVertex
  778.     }
  779. }
  780.  
  781. // this is the shader used for the ammo meter
  782. textures/hud/ammometer
  783. {
  784.     surfaceparm nolightmap
  785.     nomipmaps
  786.     nopicmip
  787.     {
  788.         clampmap textures/hud/ammometer.tga
  789.         blendFunc blend
  790.         alphaGen oneMinusVertex
  791. //        tcmod rotate 5
  792. //        nextbundle
  793. //        clampmap textures/hud/ammometer.tga
  794. //        tcmod rotate -5
  795.     }
  796. }
  797.  
  798. // this is the shader used for the weapon clip meter
  799. textures/hud/clipmeter
  800. {
  801.     surfaceparm nolightmap
  802.     nomipmaps
  803.     nopicmip
  804.     {
  805.         clampmap textures/hud/clipmeter.tga
  806.         blendFunc blend
  807.         alphaGen oneMinusVertex
  808. //        tcmod rotate 5
  809. //        nextbundle
  810. //        clampmap textures/hud/clipmeter.tga
  811. //        tcmod rotate -5
  812.     }
  813. }
  814.  
  815. // this is the central backdrop for where the ammo model is drawn
  816. textures/hud/ammoback
  817. {
  818.     surfaceparm nolightmap
  819.     nomipmaps
  820.     nopicmip
  821.     {
  822.         clampmap textures/hud/ammoback.tga
  823.         blendFunc blend
  824.         alphaGen oneMinusVertex
  825.     }
  826. }
  827.  
  828. //-------------------------------------------
  829. // These are shaders for the ammo bars
  830. //-------------------------------------------
  831.  
  832. textures/hud/clip_cangrenade
  833. {
  834.     surfaceparm nolightmap
  835.     nomipmaps
  836.     nopicmip
  837.     {
  838.         map textures/hud/clip_cangrenade.tga
  839.         blendFunc blend
  840.         alphaGen oneMinusVertex
  841.     }
  842. }
  843.  
  844. textures/hud/clip_fraggrenade
  845. {
  846.     surfaceparm nolightmap
  847.     nomipmaps
  848.     nopicmip
  849.     {
  850.         map textures/hud/clip_fraggrenade.tga
  851.         blendFunc blend
  852.         alphaGen oneMinusVertex
  853.     }
  854. }
  855.  
  856. textures/hud/clip_pistol
  857. {
  858.     surfaceparm nolightmap
  859.     nomipmaps
  860.     nopicmip
  861.     {
  862.         map textures/hud/clip_pistol.tga
  863.         blendFunc blend
  864.         alphaGen oneMinusVertex
  865.     }
  866. }
  867.  
  868. textures/hud/clip_rifle
  869. {
  870.     surfaceparm nolightmap
  871.     nomipmaps
  872.     nopicmip
  873.     {
  874.         map textures/hud/clip_rifle.tga
  875.         blendFunc blend
  876.         alphaGen oneMinusVertex
  877.     }
  878. }
  879.  
  880. textures/hud/clip_riflegrenade
  881. {
  882.     surfaceparm nolightmap
  883.     nomipmaps
  884.     nopicmip
  885.     {
  886.         map textures/hud/clip_riflegrenade.tga
  887.         blendFunc blend
  888.         alphaGen oneMinusVertex
  889.     }
  890. }
  891.  
  892. textures/hud/clip_steilhandgranate
  893. {
  894.     surfaceparm nolightmap
  895.     nomipmaps
  896.     nopicmip
  897.     {
  898.         map textures/hud/clip_steilhandgranate.tga
  899.         blendFunc blend
  900.         alphaGen oneMinusVertex
  901.     }
  902. }
  903.  
  904. textures/hud/clip_bazooka
  905. {
  906.     surfaceparm nolightmap
  907.     nomipmaps
  908.     nopicmip
  909.     {
  910.         map textures/hud/clip_bazooka.tga
  911.         blendFunc blend
  912.         alphaGen oneMinusVertex
  913.     }
  914. }
  915.  
  916. textures/hud/clip_panzerschreck
  917. {
  918.     surfaceparm nolightmap
  919.     nomipmaps
  920.     nopicmip
  921.     {
  922.         map textures/hud/clip_panzerschreck.tga
  923.         blendFunc blend
  924.         alphaGen oneMinusVertex
  925.     }
  926. }
  927.  
  928.  
  929. textures/hud/clip_shotgun
  930. {
  931.     surfaceparm nolightmap
  932.     nomipmaps
  933.     nopicmip
  934.     {
  935.         map textures/hud/clip_shotgun.tga
  936.         blendFunc blend
  937.         alphaGen oneMinusVertex
  938.     }
  939. }
  940. textures/hud/clip_nebelwerfer
  941. {
  942.     surfaceparm nolightmap
  943.     nomipmaps
  944.     nopicmip
  945.     {
  946.         map textures/hud/clip_nebelwerfer.tga
  947.         blendFunc blend
  948.         alphaGen oneMinusVertex
  949.     }
  950. }
  951.  
  952. textures/hud/clip_aa_gun
  953. {
  954. //    surfaceparm nolightmap
  955. //    nomipmaps
  956. //    nopicmip
  957.     qer_editorimage textures/hud/clip_aa_gun.tga
  958.     {
  959.         map textures/hud/clip_aa_gun.tga
  960.         blendfunc blend
  961.     }
  962.     {
  963.         map textures/hud/red_mask.tga
  964.         blendFunc GL_SRC_ALPHA GL_ONE // this is an additive blend that can be controled with the alpha level
  965.         alphagen oneMinusvertex
  966.     }
  967. }
  968.  
  969. //-------------------------------------------
  970. // This is the overlay that's done when the player is zoomed
  971. //-------------------------------------------
  972.  
  973. textures/hud/zoomoverlay
  974. {
  975.     surfaceparm nolightmap
  976.     nomipmaps
  977.     nopicmip
  978.     {
  979.         clampmap textures/hud/zoomoverlay.tga
  980.         blendFunc blend
  981.         alphaGen oneMinusVertex
  982.         rgbGen vertex
  983.     }
  984.  
  985. textures/hud/gasmask_overlay
  986. {
  987.     surfaceparm nolightmap
  988.     nomipmaps
  989.     nopicmip
  990.     {
  991.         clampmap textures/hud/gasmask_overlay.tga
  992.         blendFunc blend
  993.     }
  994. }
  995.  
  996. textures/hud/cameraoverlay
  997. {
  998.     surfaceparm nolightmap
  999.     nomipmaps
  1000.     nopicmip
  1001.     {
  1002.         clampmap textures/hud/cameraoverlay.tga
  1003.         blendFunc blend
  1004.         alphaGen oneMinusVertex
  1005.         rgbGen vertex
  1006.     }
  1007. }
  1008.  
  1009. textures/hud/binocularsoverlay
  1010. {
  1011.     surfaceparm nolightmap
  1012.     nomipmaps
  1013.     nopicmip
  1014.     {
  1015.         clampmap textures/hud/binocularsoverlay.tga
  1016.         blendFunc blend
  1017.         alphaGen oneMinusVertex
  1018.         rgbGen vertex
  1019.     }
  1020. }
  1021.  
  1022. //---------------------------------------------- //
  1023. // The following are hud map components and such //
  1024. //---------------------------------------------- //
  1025.  
  1026. textures/hud/m3l1
  1027. {
  1028.    nomipmaps
  1029.    nopicmip
  1030.    cull none
  1031.    force32bit
  1032.    surfaceparm nolightmap
  1033.    {
  1034.         rgbGen identity
  1035.             blendFunc blend
  1036.         alphaGen oneMinusVertex
  1037.         map textures/hud/m3l1.tga
  1038.     }
  1039.  
  1040. textures/hud/mapstar
  1041. {
  1042.     surfaceparm nolightmap
  1043.     nomipmaps
  1044.     nopicmip
  1045.     cull none
  1046.     {
  1047.  //       alphaFunc GE128
  1048.         blendFunc blend
  1049.         rgbGen identity
  1050.         alphaGen oneMinusVertex
  1051.         map textures/hud/mapstar.tga
  1052.     }
  1053. }
  1054.  
  1055. textures/hud/objectives_backddrop
  1056. {
  1057.     surfaceparm nolightmap
  1058.     nomipmaps
  1059.     nopicmip
  1060.     cull none
  1061.     {
  1062.  //       alphaFunc GE128
  1063.         blendFunc blend
  1064.         rgbGen identity
  1065.         alphaGen oneMinusVertex
  1066.         map textures/hud/objectives_backddrop.tga
  1067.     }
  1068. }
  1069.  
  1070. //------------------------------------------- //
  1071. // Team icons for use over teammates & on hud //
  1072. //------------------------------------------- //
  1073.  
  1074. textures/hud/allies_headicon
  1075. {
  1076.     spritegen parallel
  1077.     surfaceparm nolightmap
  1078. //    nomipmaps
  1079.     nopicmip
  1080.     cull none
  1081.     {
  1082. //        alphaFunc GE128
  1083. //        alphagen 0.8
  1084. //        rgbGen identityLighting
  1085.         alphaFunc GT0
  1086.         blendFunc blend
  1087.         rgbGen vertex
  1088.         alphagen vertex
  1089.         map textures/hud/allies.tga
  1090.     }
  1091. }
  1092.  
  1093. textures/hud/axis_headicon
  1094. {
  1095.     spritegen parallel
  1096.     surfaceparm nolightmap
  1097. //    nomipmaps
  1098.     nopicmip
  1099.     cull none
  1100.     {
  1101. //        alphaFunc GE128
  1102. //        alphagen 0.8
  1103. //        rgbGen identityLighting
  1104.         alphaFunc GT0
  1105.         blendFunc blend
  1106.         rgbGen vertex
  1107.         alphagen vertex
  1108.         map textures/hud/axis.tga
  1109.     }
  1110. }
  1111. textures/hud/allies
  1112. {
  1113.     spritegen parallel
  1114.     surfaceparm nolightmap
  1115. //    nomipmaps
  1116.     nopicmip
  1117.     cull none
  1118.     {
  1119.         alphaFunc GE128
  1120.         map textures/hud/allies.tga
  1121.     }
  1122. }
  1123.  
  1124. textures/hud/axis
  1125. {
  1126.     spritegen parallel
  1127.     surfaceparm nolightmap
  1128. //    nomipmaps
  1129.     nopicmip
  1130.     cull none
  1131.     {
  1132.         alphaFunc GE128
  1133.         map textures/hud/axis.tga
  1134.     }
  1135. }
  1136.  
  1137.  
  1138. //------------------- //
  1139. // stopwatch graphics //
  1140. //------------------- //
  1141.  
  1142. // the main body of the stopwatch
  1143. textures/hud/stopwatchbase
  1144. {
  1145.     surfaceparm nolightmap
  1146.     nomipmaps
  1147.     nopicmip
  1148.     {
  1149.         clampmap textures/hud/stopwatchbase.tga
  1150.         blendFunc blend
  1151.         alphaGen oneMinusVertex
  1152.     }
  1153. }
  1154.  
  1155. //this is the stopwatch hand
  1156. textures/hud/stopwatchhand
  1157. {
  1158.     surfaceparm nolightmap
  1159.     nomipmaps
  1160.     nopicmip
  1161.     {
  1162.         clampmap textures/hud/stopwatchhand.tga
  1163.         blendFunc blend
  1164.         alphaGen oneMinusVertex
  1165.     }
  1166. }
  1167.  
  1168. //------------------- //
  1169. // fuse graphics //
  1170. //------------------- //
  1171.  
  1172. // the main body of the fuse timer
  1173. textures/hud/fusebase
  1174. {
  1175.     surfaceparm nolightmap
  1176.     nomipmaps
  1177.     nopicmip
  1178.     {
  1179.         nodepthtest
  1180.         clampmap textures/hud/fusebase.tga
  1181.         blendFunc blend
  1182.         alphaGen oneMinusVertex
  1183.     }
  1184. }
  1185.  
  1186. // the main body of the fuse timer set to be shootable
  1187. textures/hud/fusebase_shoot
  1188. {
  1189.     surfaceparm nolightmap
  1190.     nomipmaps
  1191.     nopicmip
  1192.     {
  1193.         nodepthtest
  1194.         clampmap textures/hud/fusebase_shoot.tga
  1195.         blendFunc blend
  1196.         alphaGen oneMinusVertex
  1197.     }
  1198. }
  1199.  
  1200. //this is main part of the fuse
  1201. textures/hud/fusetile
  1202. {
  1203.     surfaceparm nolightmap
  1204.     nomipmaps
  1205.     nopicmip
  1206.     {
  1207.         nodepthtest
  1208.         map textures/hud/fusetile.tga
  1209.         blendFunc blend
  1210.         alphaGen oneMinusVertex
  1211.     }
  1212. }
  1213.  
  1214. //this is the spark of the fuse
  1215. textures/hud/fusespark
  1216. {
  1217.     surfaceparm nolightmap
  1218.     nomipmaps
  1219.     nopicmip
  1220.     sort nearest
  1221.     {
  1222.         nodepthtest
  1223.         clampmap textures/hud/fusespark.tga
  1224.         blendFunc blend
  1225.         alphaGen oneMinusVertex
  1226.     }
  1227. }
  1228.  
  1229. //this is the smoke of the fuse
  1230. textures/hud/fusesmoke
  1231. {
  1232.     surfaceparm nolightmap
  1233.     nomipmaps
  1234.     nopicmip
  1235.     sort nearest
  1236.     {
  1237.         nodepthtest
  1238.         clampmap textures/hud/fusesmoke.tga
  1239.         blendFunc blend
  1240.         alphaGen oneMinusVertex
  1241.     }
  1242. }
  1243.  
  1244.  
  1245. //------------------------ //
  1246. // instant messaging menus //
  1247. //------------------------ //
  1248.  
  1249. textures/hud/instamsg_main
  1250. {
  1251.     surfaceparm nolightmap
  1252.     nomipmaps
  1253.     nopicmip
  1254.     {
  1255.         clampmap textures/hud/instamsg_main.tga
  1256.         blendFunc blend
  1257.         alphaGen oneMinusVertex
  1258.     }
  1259. }
  1260.  
  1261. textures/hud/instamsg_group_a
  1262. {
  1263.     surfaceparm nolightmap
  1264.     nomipmaps
  1265.     nopicmip
  1266.     {
  1267.         clampmap textures/hud/instamsg_group_a.tga
  1268.         blendFunc blend
  1269.         alphaGen oneMinusVertex
  1270.     }
  1271. }
  1272.  
  1273. textures/hud/instamsg_group_b
  1274. {
  1275.     surfaceparm nolightmap
  1276.     nomipmaps
  1277.     nopicmip
  1278.     {
  1279.         clampmap textures/hud/instamsg_group_b.tga
  1280.         blendFunc blend
  1281.         alphaGen oneMinusVertex
  1282.     }
  1283. }
  1284.  
  1285. textures/hud/instamsg_group_c
  1286. {
  1287.     surfaceparm nolightmap
  1288.     nomipmaps
  1289.     nopicmip
  1290.     {
  1291.         clampmap textures/hud/instamsg_group_c.tga
  1292.         blendFunc blend
  1293.         alphaGen oneMinusVertex
  1294.     }
  1295. }
  1296.  
  1297. textures/hud/instamsg_group_d
  1298. {
  1299.     surfaceparm nolightmap
  1300.     nomipmaps
  1301.     nopicmip
  1302.     {
  1303.         clampmap textures/hud/instamsg_group_d.tga
  1304.         blendFunc blend
  1305.         alphaGen oneMinusVertex
  1306.     }
  1307. }
  1308.  
  1309. textures/hud/instamsg_group_e
  1310. {
  1311.     surfaceparm nolightmap
  1312.     nomipmaps
  1313.     nopicmip
  1314.     {
  1315.         clampmap textures/hud/instamsg_group_e.tga
  1316.         blendFunc blend
  1317.         alphaGen oneMinusVertex
  1318.     }
  1319. }
  1320. textures/hud/clip_pzb41
  1321. {
  1322.     surfaceparm nolightmap
  1323.     nomipmaps
  1324.     nopicmip
  1325.     {
  1326.         map textures/hud/clip_pzb41.tga
  1327.         blendFunc blend
  1328.         alphaGen oneMinusVertex
  1329.     }
  1330. }